package com.uminho.objects;

import java.io.Serializable;

/****c* Objects/Task
* DESCRIPTION
* Objeto que representa uma tarefa de um determinado serviço. Armazena, portanto, o nome desse recurso, a respetiva descrição e a capacidade do mesmo caso se aplique.
****
*/
public class Task implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	Long id;
	String name , description;
	Integer price, duration, max_people;

	public Task(Long id,String name, String description, Integer price, Integer duration, Integer max_people) {
		this.id=id;
		this.name = name;
		this.description = description;
		this.price = price; 
		this.duration = duration; 
		this.max_people = max_people;
	}
	
	public Task() {
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getPrice() {
		return price;
	}

	public void setPrice(Integer price) {
		this.price = price;
	}

	public Integer getDuration() {
		return duration;
	}

	public void setDuration(Integer duration) {
		this.duration = duration;
	}

	public Integer getMax_people() {
		return max_people;
	}

	public void setMax_people(Integer max_people) {
		this.max_people = max_people;
	}

	public Long getId() {
		return id;
	}

	public String getStringId() {
		return Long.toString(this.id);
	}
	
	public void setId(Long id) {
		this.id = id;
	}
	
	
}
